package com.poly.cms.pojo.vo;

import com.poly.common.core.web.domain.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 频道信息对象 cms_channel
 *
 * @author poly
 * @date 2023-10-25
 */
@ApiModel(value = "CmsChannelVO", description = "频道信息")
@Data
public class CmsChannelVO extends BaseVO
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    private Long id;

    @ApiModelProperty("频道名称")
    private String channelName;

    @ApiModelProperty("频道英文名称")
    private String englishName;

    @ApiModelProperty("上级编号")
    private Long parentId;

    @ApiModelProperty("序号")
    private Long sort;

    @ApiModelProperty("目标方式;BLANK,PARENT,TOP")
    private String target;

    @ApiModelProperty("分组名称")
    private String groupName;

    @ApiModelProperty("开启点赞")
    private Integer openLike;

    @ApiModelProperty("开启评论")
    private Integer openComment;

    @ApiModelProperty("连接地址")
    private String linkUrl;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("背景图")
    private String image;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("修改人姓名")
    private String updateName;

    @ApiModelProperty("子频道")
    private List<CmsChannelVO> children;

    private String label;

    public String getLabel() {
        return channelName;
    }

}
